package ru.gerunn.silent.message;

import ru.gerunn.silent.core.User;

@SuppressWarnings("serial")
public class TextMessage implements Message {

	private final String string;
	private final User user;

	public TextMessage(final User user, final String string) {
		this.user = user;
		this.string = string;
	}

	public User getUser() {
		return user;
	}

	public String toString() {
		return string;
	}

}
